.class public Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;
.super Landroid/widget/FrameLayout;
.source "ImageViewPlayer.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer$d;,
        Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer$c;,
        Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer$e;
    }
.end annotation


# instance fields
.field private a:Landroid/content/Context;

.field private b:Landroid/widget/ImageView;

.field private c:Ljava/lang/String;

.field private d:J

.field private e:J

.field private f:Landroid/os/Handler;

.field private g:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private h:Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer$e;

.field private i:Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer$c;

.field private j:Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer$d;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    const/4 v0, 0x0

    .line 1
    invoke-direct {p0, p1, v0}, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1

    const/4 v0, 0x0

    .line 2
    invoke-direct {p0, p1, p2, v0}, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 1

    .line 3
    invoke-direct {p0, p1, p2, p3}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 4
    new-instance p2, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer$a;

    invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper;

    move-result-object p3

    invoke-direct {p2, p0, p3}, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer$a;-><init>(Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;Landroid/os/Looper;)V

    iput-object p2, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;->f:Landroid/os/Handler;

    .line 5
    new-instance p2, Ljava/util/ArrayList;

    invoke-direct {p2}, Ljava/util/ArrayList;-><init>()V

    iput-object p2, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;->g:Ljava/util/List;

    .line 6
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;->a:Landroid/content/Context;

    .line 7
    new-instance p2, Landroid/widget/ImageView;

    invoke-direct {p2, p1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object p2, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;->b:Landroid/widget/ImageView;

    .line 8
    new-instance p1, Landroid/widget/FrameLayout$LayoutParams;

    const/4 p3, -0x1

    const/16 v0, 0x11

    invoke-direct {p1, p3, p3, v0}, Landroid/widget/FrameLayout$LayoutParams;-><init>(III)V

    invoke-virtual {p2, p1}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 9
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;->b:Landroid/widget/ImageView;

    invoke-virtual {p0, p1}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;)V

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;J)J
    .locals 0

    .line 2
    iput-wide p1, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;->e:J

    return-wide p1
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;)Z
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;->c()Z

    move-result p0

    return p0
.end method

.method static synthetic b(Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;)J
    .locals 2

    .line 1
    iget-wide v0, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;->e:J

    return-wide v0
.end method

.method static synthetic c(Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;)J
    .locals 2

    .line 1
    iget-wide v0, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;->d:J

    return-wide v0
.end method

.method private c()Z
    .locals 2

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;->g:Ljava/util/List;

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;->c:Ljava/lang/String;

    invoke-interface {v0, v1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v0

    return v0
.end method

.method static synthetic d(Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;)Landroid/os/Handler;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;->f:Landroid/os/Handler;

    return-object p0
.end method

.method static synthetic e(Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;)Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer$c;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;->i:Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer$c;

    return-object p0
.end method

.method static synthetic f(Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;)Landroid/widget/ImageView;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;->b:Landroid/widget/ImageView;

    return-object p0
.end method

.method static synthetic g(Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;)Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer$d;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;->j:Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer$d;

    return-object p0
.end method

.method static synthetic h(Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;)Ljava/util/List;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;->g:Ljava/util/List;

    return-object p0
.end method

.method static synthetic i(Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;)Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer$e;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;->h:Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer$e;

    return-object p0
.end method


# virtual methods
.method public a()V
    .locals 2

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;->f:Landroid/os/Handler;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeMessages(I)V

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;->f:Landroid/os/Handler;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeMessages(I)V

    return-void
.end method

.method public a(I)V
    .locals 2

    int-to-long v0, p1

    .line 7
    iput-wide v0, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;->e:J

    return-void
.end method

.method public a(J)V
    .locals 0

    long-to-int p2, p1

    .line 3
    invoke-virtual {p0, p2}, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;->a(I)V

    .line 4
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;->f:Landroid/os/Handler;

    const/4 p2, 0x0

    invoke-virtual {p1, p2}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    return-void
.end method

.method public b()V
    .locals 2

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;->f:Landroid/os/Handler;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeMessages(I)V

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;->f:Landroid/os/Handler;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeMessages(I)V

    const-wide/16 v0, 0x0

    .line 4
    iput-wide v0, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;->e:J

    const/4 v0, 0x0

    .line 5
    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;->h:Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer$e;

    return-void
.end method

.method public getCurrentPosition()I
    .locals 4

    .line 1
    iget-wide v0, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;->e:J

    iget-wide v2, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;->d:J

    invoke-static {v0, v1, v2, v3}, Ljava/lang/Math;->min(JJ)J

    move-result-wide v0

    long-to-int v1, v0

    return v1
.end method

.method public getPath()Ljava/lang/String;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;->c:Ljava/lang/String;

    return-object v0
.end method

.method public setDuration(J)V
    .locals 0

    .line 1
    iput-wide p1, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;->d:J

    return-void
.end method

.method public setOnCompletionListener(Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer$c;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;->i:Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer$c;

    return-void
.end method

.method public setOnErrorListener(Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer$d;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;->j:Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer$d;

    return-void
.end method

.method public setOnPreparedListener(Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer$e;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;->h:Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer$e;

    return-void
.end method

.method public setPath(Ljava/lang/String;)V
    .locals 2

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;->c:Ljava/lang/String;

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;->a:Landroid/content/Context;

    invoke-static {v0}, Lcom/esfile/recorder/a;->a(Landroid/content/Context;)Lcom/esfile/recorder/d;

    move-result-object v0

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;->c:Ljava/lang/String;

    .line 3
    invoke-virtual {v0, v1}, Lcom/esfile/recorder/d;->a(Ljava/lang/String;)Lcom/esfile/recorder/c;

    move-result-object v0

    new-instance v1, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer$b;

    invoke-direct {v1, p0, p1}, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer$b;-><init>(Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;Ljava/lang/String;)V

    .line 4
    invoke-virtual {v0, v1}, Lcom/esfile/recorder/c;->b(Lcom/bumptech/glide/request/d;)Lcom/esfile/recorder/c;

    move-result-object p1

    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;->b:Landroid/widget/ImageView;

    .line 5
    invoke-virtual {p1, v0}, Lcom/bumptech/glide/g;->a(Landroid/widget/ImageView;)Les/w3;

    return-void
.end method
